<template>
  <div>
    <span>{{ obj.shopName }}</span>
    <button @click="$emit('add',obj.count + 1)">+</button>
    <span>{{ obj.count }}</span>
    <button @click="$emit('reduce',obj.count-1)" :disabled='obj.count === 0'>-</button>
  </div>
</template>

<script>
export default {
  name: "LianxiThree",
  components: {},
  props: {
    obj: {
      type: Object,
      require: true,
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
